import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;

import teste.Model;
import teste.MyBean;

public class Main {
	public static void main(String[] args) {
		/*Model m = new AbstractModel();
		m.get(id);*/
		/*ProxyFactory pf = new ProxyFactory();
		if (pf.canProxy(new Class[]{ IRecordable.class.getClass() }))
			System.out.println("Ouai!");
		else
			System.out.println("Non!");
		 */
		XmlBeanFactory xmlBF = new XmlBeanFactory( new FileSystemResource("appContext.xml") );
		MyBean mb1 = (MyBean) xmlBF.getBean("myBean");
		mb1.execute();
		Model m = (Model) null;
		org.springframework.aop.framework.ProxyFactoryBean p = new org.springframework.aop.framework.ProxyFactoryBean();
		
	}
}
